import javax.annotation.processing.SupportedAnnotationTypes;

/**
 * User: 86156
 * Date: 2023-04-17
 * Time: 17:05
 */

public class TestSinglyLikedList {
    public static void main(String[] args) {
        SinglyLikedList list = new SinglyLikedList();

       /* list.addFirst(1);
        list.addFirst(2);
        list.addFirst(3);
        list.addFirst(4);
        list.addTail(5);
        list.loop(value-> System.out.println(value));

        System.out.println();
        System.out.println(list.get(2));*/
        //System.out.println(list.get(5));

        list.addFirst(5);
        list.addFirst(4);
        list.addFirst(3);
        list.addFirst(2);
        list.addFirst(1);

        //list.insertNode(1,6);
        //list.removeIndexNode(1);
//        list.removeFirst();


        list.loop(value-> System.out.println(value));

    }
}





